#ifndef _HILOS_H
#define _HILOS_H

#pragma warning(disable: 4996)

#include "bib_Log.h"

#include <stdlib.h>
#include <errno.h>

#include <process.h>
#include <winsock2.h>
#pragma comment (lib, "Ws2_32.lib")

#define TAM_STACK 1024*1024
#define TAM_ERROR 100

int crearHilo(void *parametro, unsigned (__stdcall *funcion) (void * ), HANDLE *hilo);
int liberarHandle(HANDLE handle);
int crearMutex(HANDLE *mutex, BOOL tomarControl);
int tomarControlMutex(HANDLE mutex);
int liberarControlMutex(HANDLE mutex);
int esperarFinHilo(HANDLE hilo);

#endif